import request from '@/utils/request'

// 查询问题类型列表
export function listTrainProblemType(query) {
  return request({
    url: '/question/trainProblemType/list',
    method: 'get',
    params: query
  })
}

// 查询问题类型列表
export function listTrainProblemTypeAll() {
  return request({
    url: '/question/trainProblemType/list/all',
    method: 'get',
  })
}

// 查询问题类型详细
export function getTrainProblemType(id) {
  return request({
    url: '/question/trainProblemType/' + id,
    method: 'get'
  })
}

// 新增问题类型
export function addTrainProblemType(data) {
  return request({
    url: '/question/trainProblemType',
    method: 'post',
    data: data
  })
}

// 修改问题类型
export function updateTrainProblemType(data) {
  return request({
    url: '/question/trainProblemType',
    method: 'put',
    data: data
  })
}

// 删除问题类型
export function delTrainProblemType(id) {
  return request({
    url: '/question/trainProblemType/' + id,
    method: 'delete'
  })
}
